package com.example.core.service;

import com.example.core.convert.context.RequestContext;
import com.example.core.form.BaseForm;
import com.example.core.model.BaseModel;

public interface DispatchService {
    public void add(BaseModel model) throws Exception;

    public void delete(BaseModel model) throws Exception;

    public void update(BaseModel model) throws Exception;

    public void cloneModelToForm(BaseForm form, RequestContext requestContext, BaseModel model) throws Exception;

    public void convertFormToModel(BaseForm form, RequestContext requestContext, BaseModel model) throws Exception;
}
